html {
    box-sizing: border-box;
}


*,
*:before,
*:after {
    box-sizing: inherit;
}

.panels {
    width: 100%;
    height: auto;
    min-height: 100%;
    overflow: hidden;
    display: flex;

}

.panel {
    background: #6b0f0c;
    box-shadow: inset 0 0 0 5px rgba(255, 255, 255, 0.1);
    color: white;
    text-align: center;
    /* transition:
        font-size 0.7s cubic-bezier(0.61, -0.19, 0.7, -0.11),
        flex 0.7s cubic-ezier(0.61, -0.19, 0.7, -0.11),
        background 5s; */
    transition: 0.5s;
    font-size: 20px;
    background-position: center;
    flex: 1;
    justify-content: center;
    align-items: center;
    display: flex;
    flex-direction: column;

}

.panel1 {
    background-image: url("../img/05CAA6C4-92B3-4DB3-8D0C-77C1A043F5EB_1_105_c.jpeg");
}

.panel2 {
    background-image: url("../img/688FF25C-50D8-437B-AB57-5F92D1BB637B_1_105_c.jpeg");
}

.panel3 {
    background-image: url("../img/767FBD8A-798D-41B7-908D-8DC9218EC7E4_1_105_c.jpeg");
}

.panel4 {
    background-image: url("../img/B2B91C68-D839-43F0-AACC-AD0A7ADD872A_1_105_c.jpeg");
}

.panel5 {
    background-image: url("../img/EE716CE6-83B3-45D7-A42A-3D525D3E817C_1_105_c.jpeg");
}

.panel>* {
    margin: 0;
    width: 100%;
    transition: transform 0.5s;
    /* border: solid 1px red; */
    flex: 1 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;

}

.panel>*:first-child {
    transform: translateY(-100%);
}

.panel.open-active>*:first-child {
    transform: translateY(0);
}

.panel>*:last-child {
    transform: translateY(100%);
}

.panel.open-active>*:last-child {
    transform: translateY(0);
}


.panel p {
    text-transform: uppercase;
    text-shadow: 0 0 4px rgba(0, 0, 0, 0.72), 0 0 14px rgba(0, 0, 0, 0.45);
    font-size: 2em;

}

.panel p:nth-child(2) {
    font-size: 4em;
}

.panel.open {
    font-size: 40px;
    flex: 2;
}

.cta {
    color: white;
    text-decoration: none;
}